<?php
class Youthor_Home_Block_Category extends Mage_Core_Block_Template {

   public function getProductsCollection()
    {
        $categoryId = 3;
        $category = Mage::getModel('catalog/category')->load($categoryId);
        $productCollection = $category->getProductCollection()
                                          ->addAttributeToSelect('*')
                                          ->load();
        $return = array();
        foreach($productCollection as $product) {
            $return[] = $product;
        }
        return $return;
    }
    
    public function getAddToCartUrl($product, $additional = array())
    {
        if ($this->getRequest()->getParam('wishlist_next')){
            $additional['wishlist_next'] = 1;
        }

        return $this->helper('checkout/cart')->getAddUrl($product, $additional);
    }
}